package com.greatchn.security_demo.web.controller;

import com.greatchn.security_demo.util.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.security.DeclareRoles;
import javax.annotation.security.RolesAllowed;

/**
 * @AdminController: admin ctrl
 * @author: ZBoHang
 * @time: 2023/2/8 11:17
 */
@RestController
@RequestMapping("/admin")
public class AdminController {

    @PostMapping("getAdmin")
    public Result getAdmin() {

        return Result.success("suc!");
    }
}
